<%- include('header')%>
<div class="container mt-100 mb-50">
  <div class="row">
    <div class="col-md-4">
      <%- include('components/user-info', {user: authUser})%>
    </div>
    <div class="col-md-8 latest-article">
      <%if(!posts || posts.length < 1) {%>

      <p class="text-align-center mt-100 color-999">还没有发表文章</p>

      <%} else {%> <% posts.forEach(post=>{ %> <%-
      include('components/horizontal-card', {post})%> <% }) %> <%}%>

      <!-- 分页器开始 -->
      <%- include('components/pagination', {async:false})%>
      <!-- 分页器结束 -->
    </div>
  </div>
</div>
<%- include('footer')%>
